
#ifndef WF_ACTIONFACTORY_H
#define WF_ACTIONFACTORY_H

#include <qaction.h>
#include <qobject.h>

#include "lx_define.h"

#include "wf_actionhandler.h"
#include "wf_mainwindowinterface.h"
#include "gui_export.h"

/**
 * This class can store recent files in a list.
 */
class GUI_EXPORT WF_ActionFactory : public QObject {
    Q_OBJECT

public:
    WF_ActionFactory(WF_ActionHandler* ah, QWidget* w);
    virtual ~WF_ActionFactory();

    QAction* createAction(LX_Define::ActionType id, QObject* obj, QObject* obj2=NULL);

private:
    WF_ActionHandler* actionHandler;
    QWidget* widget;
};

#endif

